package cnm.dao.hibernate;

import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.springframework.orm.hibernate3.HibernateCallback;

import cnm.dao.ProgramDAO;
import cnm.dao.UserDAO;
import cnm.model.User;

public class UserHibernateDAO extends GenericHibernateDAO<User> implements UserDAO
{
	public UserHibernateDAO()
	{
		super(User.class);
	}

	/*public Resource findByUuid(final String uuid)
	{
		return (Resource) getHibernateTemplate().execute(new HibernateCallback()
		{
			public Object doInHibernate(Session session) throws HibernateException
			{
				Query query = session.createQuery("from Resource r where r.resourceUuid = :uuid")
					.setString("uuid", uuid);
				return query.uniqueResult();
			}
		}, true);
	}*/
	
}
